/**
 * Created by saintess on 2017/7/24.
 */


var attachUrl='';

var attach={};

attach.initUrl=function (url) {
  attachUrl=url;
};
attach.initAttach=function (_self,matnum,matsubtype)
{
   let url=attachUrl+'/tasks/hz/matfile/'+matnum;
   if(matsubtype)
     url=url+'?matsubtype='+matsubtype;
  return _self.axios.get(url);
};
attach.initTskFiles=function (_self,guid,matsubtype) {
  let url=attachUrl+'/tasks/hz/loadfiles/'+guid;
  if(matsubtype)
    url=url+'?matsubtype='+matsubtype;
  return _self.axios.get(url);
}


export default  attach;

